﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace WCLOnlineExam.Models
{
    public class ExamResult : EntityBase 
    {
        [Display(Name = "试卷名称", Order = 0)]
        [Required]
        public virtual Exam exam { get; set; }

        [Display(Name = "考试人", Order = 0)]
        [Required]
        public virtual User user { get; set; }

        [Display(Name = "参加时间", Order = 0)]
        [Column(TypeName = "datetime2")]
        public virtual DateTime CreateDate { get; set; }

        [Display(Name = "得分", Order = 0)]
        public virtual int Score { get; set; }
    }
}